package com.hxzy.order.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hxzy.order.entity.TtAbnormalReporting;
import com.hxzy.order.mapper.TtAbnormalReportingMapper;
import com.hxzy.order.service.TtAbnormalReportingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author mingqian.Wu
 * @since 2023-06-27
 */
@Service
public class TtAbnormalReportingServiceImpl extends ServiceImpl<TtAbnormalReportingMapper, TtAbnormalReporting> implements TtAbnormalReportingService {

    @Override
    public TtAbnormalReporting getYcInfoById(String id) {
        QueryWrapper<TtAbnormalReporting> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("waybill_id", id);
        TtAbnormalReporting ttAbnormalReportings = baseMapper.selectOne(queryWrapper);
        return ttAbnormalReportings;
    }
}
